const router = require('koa-router')()
const Controller = require('../controllers/hanziStructureController')

router.prefix('/structure')

router.get('/', Controller.getAllHanziStructures)
router.get('/:id', Controller.getHanziStructureById)
router.post('/', Controller.createHanziStructure)
router.put('/:id', Controller.updateHanziStructure)
router.delete('/:id', Controller.deleteHanziStructure)

module.exports = router